home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ ICS 2.xpl < prev    next >
Text File  |  2001-02-10  |  1KB  |  67 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Internet\Internet Connection Sharing"
  5. "NAME"="ICS Settings"
  6. "VERSION"="1.17"
  7. "OSVERSION"="00101"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Show ICS Icon on Taskbar"
  10. "TEXT 2"="Enable ICS"
  11. "DESCRIPTION 1"="To show Internet Connection Sharing Icon on Hosts Taskbar, check box; to hide icon, uncheck box."
  12. "DESCRIPTION 2"="To Enable Internet Connection Sharing, check box; to disable ICS, uncheck box."
  13. "AUTHOR"="Ojatex@aol.com"
  14. "CONTACTURL"="http://members.aol.com/ojatex/"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17.  
  18.  
  19.  
  20.  
  21. sP="HKLM\System\CurrentControlSet\Services\ICSharing\Settings\General\"
  22. sV2="ShowTrayIcon"
  23. sV1="Enabled"
  24.  
  25. Sub Plugin_Initialize 
  26.  if RegPathExists(sp) then
  27.  
  28.   i=RegReadValue(sp & sv2)
  29.   if i=1 then SetUIElement 1,true
  30.  
  31.   i=RegReadValue(sp & sv1)
  32.   if i=1 then SetUIElement 2, true
  33.  
  34.  else
  35.   Disable
  36.  end if
  37. End Sub
  38.  
  39. Sub Plugin_CheckData(ElementIndex)
  40. End Sub
  41.  
  42. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  43.  b=GetUIElement(1)
  44.  if b=true then
  45.   Call RegWriteValue(sp & sv2,"1",1)
  46.  else
  47.   Call RegWriteValue(sp & sv2,"0",1)
  48.  end if
  49.  
  50. b=GetUIElement(2)
  51.  if b=true then
  52.   Call RegWriteValue(sp & sv1,"1",1)
  53.  else
  54.   Call RegWriteValue(sp & sv1,"0",1)
  55.  end if
  56.  
  57.   
  58. Call Restart
  59.  
  60. End Sub
  61.  
  62. Sub Plugin_Terminate 
  63. End Sub
  64.  
  65.  
  66.  
  67.